<{include file="Common/head"}>
<{include file="Common/menu"}>

<link href="_index_/yy/index.css" rel="stylesheet">
<link href="_index_/yy/laydate.css" rel="stylesheet">
<script src="_index_/yy/laydate.js"></script>
<script type="text/javascript" src="_index_/laydate/laydate.js"></script>

<style type="text/css">
    *{font-size: 15px!important;}
    form{margin-top: 14px;  margin-left: 5px;}
    form h4{  float: left;  margin: 0px;  }
    #mytable{
        width: 100%;
        max-height: 100%;
        overflow: auto;
        float: left;
    }

</style>

<section class="Hui-article-box">

    <{eq name="$username" value="pcyy"}>
    <form action="/index/Set/paiban" enctype="multipart/form-data" method="post">
        <h4>上传排班表：</h4>
    <span class="btn-upload form-group">
        <input class="input-text upload-url radius" type="text" name="uploadfile" id="uploadfile" readonly><a href="javascript:void(0);" class="btn btn-primary radius"><i class="iconfont">&#xf0020;</i> 浏览文件</a>
        <input type="file" multiple name="file" class="input-file">
    </span>
        <input class="btn btn-success radius" type="submit" id="submit" value="修改提交">
        <span><a href="/uploads/pb.xlsx">模版下载</a></span>

    </form>
    <{/eq}>


<hr/>

<div id="mytable">
    <table class="table table-border table-bordered table-striped table-hover" >

        <tbody>
        <?php
            foreach($all_data as $k => $v){
        ?>
        <tr class="paiban_data">
        
            <?php
                foreach($v as $a => $b){
            ?>
				<td style="<?php echo $b=='休'?'background:yellow':''; ?>"><?php echo $b;?></td>
            <?php
                }
            ?>
        </tr>
        <?php
            }
        ?>
        <tr>
            <td></td>
        </tr>
        </tbody>
    </table>
	
	<div class="beizhu">
		<p>注：“早”表示正常白班，“早”表示8:30-17:30白班，“晚”表示晚班，11:00-20:00。“中”表示中班，10:00-19:00，“休”表示休息，“节”表示年休假及法定节假日休息。</p>
		<p>早班负责整理各治疗室卫生、补充物料、清洁仪器，周四各自负责治疗室。早1负责交班放平板到拍照室、标蓝写交班、晚1负责把平板放回仓库充电、晚2 13点到21点</p>
	</div>
</div>
</section>



<{include file="Common/footer"}>

<script type="text/javascript">

    var noticeType='<{$noticeType}>';
    if(noticeType==1){
        $.Huimodalalert("文件格式必须为'xlsx'，请重新上传",3000);
        window.close();
    }

        window.onload = function(){
            var tableCont = document.querySelector('#mytable');
            function scrollHandle (e){
                console.log(123);
                var scrollTop = this.scrollTop;
                this.querySelector('thead').style.transform = 'translateY(' + scrollTop + 'px)';
            }
            tableCont.addEventListener('scroll',scrollHandle);
        };
  
</script>